package com.tedu.parkinglot.role.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Role {
    @ApiModelProperty(value = "角色id")
    private Long id;
    @ApiModelProperty(value = "角色名")
    private String name;
    @ApiModelProperty(value = "角色管理员id")
    private Long adminId;
    @ApiModelProperty(value = "角色停车场id")
    private Long parkingId;
    @ApiModelProperty(value = "角色状态")
    private Long enable;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "开始日期")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "结束日期")
    private Date endDate;
    @ApiModelProperty(value = "角色描述")
    private String describe;
}
